const CHANGE_TYPE_OPTIONS = [
  {
    label: '成本价',
    value: '1'
  },
  {
    label: '分销加价率',
    value: '2'
  }
]
export const FORM_ITEMS = [
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input'
  },
  {
    prop: 'provinceName',
    label: '销售省',
    type: 'input'
  },
  {
    prop: 'recordNo',
    label: '单据号',
    type: 'input'
  },
  {
    prop: 'changeType',
    label: '变更类型',
    type: 'select',
    options: CHANGE_TYPE_OPTIONS
  },
  {
    prop: 'changeTime',
    label: '变更日期',
    type: 'datePicker',
    datePickerType: 'daterange',
    valueFormat: 'yyyy-MM-dd'
  }
]

export const TABLE_COLUMNS = [
  {
    title: '变更时间',
    key: 'changeTime'
  },
  {
    title: '变更类型',
    key: 'changeTypeStr'
  },
  {
    title: '变更人',
    key: 'changeUserName'
  },
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'spec'
  },
  {
    title: '计量单位',
    key: 'unitName'
  },
  {
    title: '省',
    key: 'provinceName'
  },
  {
    title: '城市',
    key: 'cityName'
  },
  {
    title: '成本价',
    key: 'mainUnitPrice'
  },
  {
    title: '分销加价率',
    key: 'distributionAddRate'
  },
  {
    title: '分销价',
    key: 'distributionPrice'
  },
  {
    title: '单据号',
    key: 'recordNo'
  },
]
